/**
 * Copyright 2020 Inc.
 **/
package com.myz.cloud.rocketmq.consumer.mq;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.springframework.stereotype.Component;

/**
 * @author maoyz0621 on 2020/8/11
 * @version v1.0
 */
@RocketMQMessageListener(topic = "my-topic1",
        consumerGroup = "my-group-1",
        selectorExpression = "*")
@Component
@Slf4j
public class MqConsumer1 extends BaseRocketMQListener<String> {


    @Override
    protected void doConsumerMsg(String message) {
        log.info(message);
    }
}